package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.UserReadCompanySysNoticeExample.E_HAS_DEL;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.E_SYS_NOTICE_ID;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.E_USER_ID;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.M_SYS_NOTICE_ID_MAX;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.M_SYS_NOTICE_ID_NOT_NULL;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.M_USER_ID_MAX;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.M_USER_ID_NOT_NULL;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.N_HAS_DEL;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.N_SYS_NOTICE_ID;
import static org.jsola.hr.example.UserReadCompanySysNoticeExample.N_USER_ID;

/**
 * 用户已阅公司系统公告(用户阅读公司系统公告后添加)
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【用户已阅公司系统公告(用户阅读公司系统公告后添加)】的参数")
@Data
public class UserReadCompanySysNoticeAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_USER_ID, example = E_USER_ID, required = true)
    @NotNull(message = M_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_USER_ID_MAX)
    private String userId;

    @ApiModelProperty(notes = N_SYS_NOTICE_ID, example = E_SYS_NOTICE_ID, required = true)
    @NotNull(message = M_SYS_NOTICE_ID_NOT_NULL)
    @Length(max = 32, message = M_SYS_NOTICE_ID_MAX)
    private String sysNoticeId;

    @ApiModelProperty(notes = N_HAS_DEL, example = E_HAS_DEL)
    private Boolean hasDel;


}

